package com.zareal.ymcc.mapper;

import com.zareal.domain.User;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.springframework.data.repository.query.Param;

/**
 * <p>
 * 会员登录账号 Mapper 接口
 * </p>
 *
 * @author Wilson
 * @since 2022-09-23
 */
public interface UserMapper extends BaseMapper<User> {

    void saveInviteCodeById(@Param("id") Long id,@Param("inviteCode") String inviteCode);

    Object findByInviteCode(String inviteCode);

    String findCodeById(Long id);
}
